import os
from ConfigParser import SafeConfigParser

def run():
    _configFile()
    return _DUMMYPLUG()

def _configFile():
    if not ('config.ini' in os.listdir(os.getcwd())):
        ConFile = open(os.getcwd() + '\\config.ini','w')
        Con = SafeConfigParser(defaults = {'Font Name':'Times',
                                            'Font Size':'12',
                                            'Title Font Name':'Times',
                                            'Title Font Size':'14',
                                            'Title Font Style':'bold'})
            
        Con.add_section('Properties')
        Con.set('Properties','Name','Properties')

        Con.add_section('Main View')
        Con.set('Main View','Name','Main View')

        Con.add_section('Options View')
        Con.set('Options View','Name','Options View')

        Con.add_section('Article View')
        Con.set('Article View','Name','Article View')

def _DUMMYPLUG():
    if not ('DUMMYPLUG_System' in os.listdir(os.getcwd())):
        os.mkdir('DUMMYPLUG_System')
        return False
    else:
        return 'DUMMYPLUG.xml' in os.listdir(os.getcwd() + '\\DUMMYPLUG_System')
